/* LastResort JS file */ $(document).ready(function () { 'use strict'; // function to turn a slice name into a selector reference for the corresponding
tag function GetSectionTagRef(SliceName) { return 'section.' + SliceName + ' '; } var SectionTag, SectionTags; // will be used to hold required slices function SectionTagExists(SliceName) { if (SectionTags.hasClass(SliceName)) { SectionTag = SectionTags.filter(GetSectionTagRef(SliceName)); if (SectionTag.length !== 0) { // at least one slice exists, great. You could have more than one in theory. return true; } } SectionTag = undefined; // remove all data. return false; } // function to test if text exists. var sAttrText, sAttrText2, sAttrText3, sAttrText4; // Results come back in these variables. var DollarTextarea = $("